<template>
  <div class="main_right_top" ref="leftBottom">
    <div class="main_left_bottom_top">
      <span class="title">活动效果</span>
    </div>
    <div class="box_mian_top">
      <div class="item" v-for="(item, index) in 2" :key="index">
        <div class="top">
          <span>已使用成本(元)</span>
        </div>
        <div class="bottom">
          <h2>1,413,279</h2>
        </div>
      </div>
    </div>
    <div class="box_mian_footer">
      <div class="title">权益金成本使用率</div>
      <div class="progressBar">
        <el-progress :percentage="50"></el-progress>
      </div>
    </div>
  </div>
</template>

<script>
// import * as echarts from 'echarts'
export default {
  name: "main_left_bottom",
  props: {
    width: { type: String, default: "100%" },
    heigth: { type: String, default: "100%" },
    data: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  created() {},
  mounted() {
    // // 基于准备好的dom，初始化echarts实例
    // var myChart = echarts.init(document.querySelector('.progressBar'))
    // // 绘制图表
    // myChart.setOption({
    //   title: {
    //     text: '入门示例'
    //   },
    //   tooltip: {},
    //   xAxis: {
    //     data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
    //   },
    //   yAxis: {},
    //   series: [
    //     {
    //       name: '销量',
    //       type: 'bar',
    //       data: [5, 20, 36, 10, 10, 20]
    //     }
    //   ]
    // })
  },

  methods: {
    trunCss() {},
  },
};
</script>

<style scoped lang="css">
.main_right_top {
  height: 100%;
  width: 100%;
  position: relative;
}
.main_left_bottom_top {
  height: 100%;
  background-image: url("../../../assets/5r678Fx1_1583817896809_okN8qlk6u.png");
  background-repeat: no-repeat;
  background-size: 729px 46px;
}
.main_right_top .title {
  font-family: SourceHanSansCN-Bold;
  font-size: 20px;
  font-weight: normal;
  text-align: left;
  letter-spacing: 4px;
  line-height: 44px;
  color: #fff;
  text-shadow: rgb(84 76 255) 0px 0px 8px;
}
.box_mian_top {
  display: flex;
  width: 100%;
  min-height: 90px;
  flex-wrap: wrap;
  padding: 10px;
  position: absolute;
  top: 44px;
  left: 0;
}
.box_mian_top .item {
  background-image: url("../../../assets/8fE0Ocjkn_1584603668546_2keh-lAtbN.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  flex: 1;
  padding: 0px 10px;
  text-align: center;
  margin: 5px;
  display: flex;
  flex-direction: column;
}
.box_mian_top .item .top {
  flex: 1;
  text-align: center;
  color: #8e90e9;
}
.box_mian_top .item .bottom {
  flex: 3;
  text-align: center;
  line-height: 60px;
  color: #fff;
}
.box_mian_footer {
  width: 100%;
  background-image: url("../../../assets/rFZIRbhWC_1584603585482_Q5MeUJhl21.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}
.box_mian_footer .progressBar {
  height: 70px;
  width: 100%;
  text-align: center;
  line-height: 70px;
}
</style>
